package com.imc.griebeler.power;

import com.imc.griebeler.appliance.Toaster;

public class ToasterAdapter implements PowerPoint{

	private Toaster toaster;
	
	public ToasterAdapter() {
		toaster = new Toaster();
	}
	
	public ToasterAdapter(Toaster toaster) {
		this.toaster = toaster;
	}
	
	@Override
	public void on() {
		toaster.startToasting();
	}

	@Override
	public void off() {
		toaster.stopToasting();
	}

}
